//
//  NewLayout.m
//  TasteEnjoy
//
//  Created by XuRui on 16/4/20.
//  Copyright © 2016年 XuRui. All rights reserved.
//

#import "NewLayout.h"

@implementation NewLayout
#pragma mark - ------------ 设置layout ---------------
- (instancetype)init
{
    self = [super init];
    if (self) {
        
        self.itemSize = CGSizeMake((SCREEN_WIDTH - 30) / 2 , 250);
        //左右间item
        self.minimumInteritemSpacing = 10;
        //上下间item
        self.minimumLineSpacing = 0;
        
        //分区边缘距离
       self.sectionInset = UIEdgeInsetsMake(0, 10, 0, 10);
        
        //头部
         self.headerReferenceSize = CGSizeMake(SCREEN_WIDTH, 60);
        
        
    }
    return self;
}
@end
